package org.springextensions.actionscript.ioc.factory.xml.parser.support.nodeparsers
{
	import org.springextensions.actionscript.ioc.factory.config.RuntimeResourceReference;
	import org.springextensions.actionscript.ioc.factory.xml.parser.support.XMLObjectDefinitionsParser;
	import org.springextensions.actionscript.ioc.util.ResourceConstants;

	public class ResourceNodeParser extends AbstractNodeParser
	{
		public function ResourceNodeParser(xmlObjectDefinitionsParser:XMLObjectDefinitionsParser)
		{
			super(xmlObjectDefinitionsParser, ResourceConstants.RESOURCE_ELEMENT);
		}
		
		override public function parse(node:XML):Object
		{
			return new RuntimeResourceReference(node.valueOf());
		}
	}
}